﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Models;
using DAL;

namespace BLL
{
   public class PeixunBLL
    {
       PeixunDAL dal = new PeixunDAL();
       /// <summary>
       /// 培训记录显示
       /// </summary>
       /// <returns></returns>
       public List<train_tbModel> peixunshow()
       {

           return dal.peixunshow();
       }
       /// <summary>
       /// 培训类型显示
       /// </summary>
       /// <returns></returns>
       public List<traintype_tbModel> traintypeshow()
       {
           return dal.traintypeshow();
       }
       /// <summary>
       /// 培训人员表显示
       /// </summary>
       /// <returns></returns>
       public List<traineeModel> traineeshow()
       {
           return dal.traineeshow();
          
       }
       /// <summary>
       /// 培训人员的添加
       /// </summary>
       /// <param name="t"></param>
       /// <returns></returns>
       public int traineeADD(traineeModel t)
       {
           return dal.traineeADD(t);
       }
       /// <summary>
       /// 培训人员表的删除
       /// </summary>
       /// <param name="trainee_id"></param>
       /// <returns></returns>
       public int traineeDEL(int trainee_id)
       {
           return dal.traineeDEL(trainee_id);
       }
       /// <summary>
       /// 培训人员表反填
       /// </summary>
       /// <returns></returns>
       public List<traineeModel> traineeft(int trainee_id)
       {
           return dal.traineeft(trainee_id);
       }
       /// <summary>
       /// 培训人员的修改
       /// </summary>
       /// <param name="t"></param>
       /// <returns></returns>
       public int traineeUPT(traineeModel t)
       {
           return dal.traineeUPT(t);
       }
       /// <summary>
       /// 员工证书显示
       /// </summary>
       /// <returns></returns>
       public List<certificate_tbModel> certificate_tb()
       {
           return dal.certificate_tb();
       }
      
       /// <summary>
       /// 培训类型的维护添加
       /// </summary>
       /// <param name="t"></param>
       /// <returns></returns>
       public int traintypeadd(traintype_tbModel t)
       {
           return dal.traintypeadd(t);
       }
       /// <summary>
       /// 培训类型的反填
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public traintype_tbModel traintypeft(int id)
       {
           return dal.traintypeft(id);
       }
       /// <summary>
       /// 培训类型删除
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int traintypedel(int id)
       {
           return dal.traintypedel(id);
       }
       /// <summary>
       /// 培训类型的修改
       /// </summary>
       /// <param name="id"></param>
       /// <returns></returns>
       public int traintypeupt(traintype_tbModel t)
       {
           return dal.traintypeupt(t);
       }
    }
}
